import ajax from './index'

// 含大区行政区域树列表

export function partnerRegionTreeList(param) {
  return ajax({
    url: "/backend/partnerRegion/treeList",
    method: "get",
    params: param
  });
}

// 合伙人表分页列表
export function partnerPageList(condition) {

  return ajax({
    url: "/backend/partner/pageList",
    method: "get",
    params: condition
  });
}
// 更新合伙人表
export function partnerUpdate(param) {
  return ajax({
    url: "/backend/partner/update",
    method: "post",
    data: param
  });
}
// 新增合伙人表
export function partnerAdd(param) {
  return ajax({
    url: "/backend/partner/add",
    method: "post",
    data: param
  });
}
// 详情
export function partnerDetail(id) {

  return ajax({
    url: `/backend/partner/detail/${id}`,
    method: "get",
  });
}
// 删除合伙人表
export function partnerDelete(ids) {

  return ajax({
    url: `/backend/partner/delete/${ids}`,
    method: "get"
  });
}
// 合伙人区域统计信息
export function partnerStatistics(areaId) {

  return ajax({
    url: `/backend/partner/statistics/${areaId}`,
    method: "get"
  });
}
// 服务订单-接口
export function storeServiceOrders(query) {

  return ajax({
    url: `/backend/partner/data/storeServiceOrders`,
    method: "get",
    params: query
  });
}
// 红包充值记录-（自己的红包-待确认）
export function redPacketsOrders(query) {

  return ajax({
    url: `/backend/partner/data/redPacketsOrders`,
    method: "get",
    params: query
  });
}

//
export function partnerShopPageList(query) {

  return ajax({
    url: `/backend/partner/data/shopPageList`,
    method: "get",
    params: query
  });
}
export function storeServiceOrderss(query) {

  return ajax({
    url: `/backend/partner/data/storeServiceOrders`,
    method: "get",
    params: query
  });
}

